﻿using MyTcpIp.displacement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace MyTcpIp.displacement
{
    /// <summary>
    /// 位移数据包
    /// </summary>
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct DisplacementData
    {
        public UInt16 Year;
        public byte Month;
        public byte Day;
        public byte Hour;
        public byte Minute;
        public byte Second;
        public UInt16 Millisecond;

        //[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
        //CHAxisData[] CHAxisdata;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
        public CHDisplacementData[] CHDisData;
        /// <summary>
        /// 轴心轨迹数据
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
        public CHOrbitData[] OrbitData;
    }
}
